//
//  CityTemp.m
//  07_HomeWork
//
//  Created by dllo on 16/7/12.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "CityTemp.h"

@implementation CityTemp
- (void)dealloc {
    [_cityName release];
    [_cityNumber release];
    [super dealloc];
}

- (instancetype)initWithName:(NSString *)name number:(NSString *)number {
    self = [super init];
    if (self) {
        _cityName = [name copy];
        _cityNumber = [number copy];
    }
    return self;
}
- (void)setCityName:(NSString *)cityName {
    if (_cityName != cityName) {
        [_cityName release];
        _cityName = [cityName retain];
    }
}
- (void)setCityNumber:(NSString *)cityNumber {
    if (_cityNumber != cityNumber) {
        [_cityNumber release];
        _cityNumber = [cityNumber retain];
    }
}
- (NSString *)description {
    return [NSString stringWithFormat:@"%@", _cityName];
}
@end
